home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / Clipboard.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  2KB  |  84 lines

  1. /*
  2.      File:        Clipboard.h
  3.  
  4.      Contains:    Clipboard Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 8
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __CLIPBOARD__
  19. #define __CLIPBOARD__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __SCRAP__
  25. #include <Scrap.h>
  26. #endif
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. #if PRAGMA_IMPORT_SUPPORTED
  33. #pragma import on
  34. #endif
  35.  
  36. #if PRAGMA_ALIGN_SUPPORTED
  37. #pragma options align=mac68k
  38. #endif
  39.  
  40. #if FOR_SYSTEM8_PREEMPTIVE
  41. /*
  42. _________________________________________________________________________________________________________
  43.  * ERRORS
  44. _________________________________________________________________________________________________________
  45. */
  46.  
  47. enum {
  48.     kClipboardEmptyErr            = -1000,
  49.     kClipboardScrapNotFoundErr    = -1001
  50. };
  51.  
  52. /*
  53. _________________________________________________________________________________________________________
  54.  * PUTTING A SCRAP ON THE CLIPBOARD
  55. _________________________________________________________________________________________________________
  56. */
  57. extern OSStatus PutScrapOnClipboard(ScrapRef theScrap);
  58.  
  59. /*
  60. _________________________________________________________________________________________________________
  61.  * GETTING A SCRAP FROM THE CLIPBOARD
  62. _________________________________________________________________________________________________________
  63. */
  64. extern OSStatus GetScrapFromClipboard(ScrapRef *theScrap);
  65.  
  66. extern OSStatus ReleaseClipboardScrap(ScrapRef theScrap);
  67.  
  68. #endif
  69.  
  70. #if PRAGMA_ALIGN_SUPPORTED
  71. #pragma options align=reset
  72. #endif
  73.  
  74. #if PRAGMA_IMPORT_SUPPORTED
  75. #pragma import off
  76. #endif
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.  
  82. #endif /* __CLIPBOARD__ */
  83.  
  84.